﻿@* Ui层项目 - angular配置文件 *@
@using Util.Generators.Helpers
@model Util.Generators.Contexts.EntityContext
@{
    var service = new GenerateService( Model );
    var name = service.GetClientAppName();
}
{
  "$schema": "./node_modules/@@angular/cli/lib/config/schema.json",
  "version": 1,
  "newProjectRoot": "projects",
  "projects": {
    "@name": {
      "projectType": "application",
      "root": "",
      "sourceRoot": "src",
      "prefix": "app",
      "schematics": {
        "@@schematics/angular:component": {
          "style": "less"
        },
        "@@schematics/angular:application": {
          "strict": true
        }
      },
      "architect": {
        "build": {
          "builder": "@@angular-devkit/build-angular:application",
          "options": {
            "outputPath": "dist",
            "index": "src/index.html",
            "browser": "src/main.ts",
            "tsConfig": "tsconfig.app.json",
            "polyfills": [
              "zone.js"
            ],
            "assets": [
              "src/assets",
              "src/favicon.ico"
            ],
            "styles": [
              "src/styles.less",
              "node_modules/ng-zorro-antd/resizable/style/entry.less"
            ],
            "scripts": [],
            "allowedCommonJsDependencies": [
            ],
            "stylePreprocessorOptions": {
              "includePaths": [
                "node_modules/"
              ]
            }
          },
          "configurations": {
            "production": {
              "fileReplacements": [
                {
                  "replace": "src/environments/environment.ts",
                  "with": "src/environments/environment.prod.ts"
                }
              ],
              "outputHashing": "all",
              "budgets": [
                {
                  "type": "initial",
                  "maximumWarning": "2mb",
                  "maximumError": "6mb"
                },
                {
                  "type": "anyComponentStyle",
                  "maximumWarning": "6kb",
                  "maximumError": "10kb"
                }
              ]
            },
            "development": {
              "optimization": false,
              "extractLicenses": false,
              "sourceMap": true
            }
          },
          "defaultConfiguration": "production"
        },
        "serve": {
          "builder": "@@angular-devkit/build-angular:dev-server",
          "options": {
            "buildTarget": "@(name):build"
          },
          "configurations": {
            "production": {
              "buildTarget": "@(name):build:production"
            },
            "development": {
              "buildTarget": "@(name):build:development"
            }
          },
          "defaultConfiguration": "development"
        },
        "extract-i18n": {
          "builder": "@@angular-devkit/build-angular:extract-i18n",
          "options": {
            "buildTarget": "@(name):build"
          }
        },
        "test": {
          "builder": "@@angular-devkit/build-angular:karma",
          "options": {
            "polyfills": [
              "zone.js",
              "zone.js/testing"
            ],
            "tsConfig": "tsconfig.spec.json",
            "scripts": [],
            "styles": [],
            "assets": [
              "src/assets"
            ]
          }
        },
        "lint": {
          "builder": "@@angular-eslint/builder:lint",
          "options": {
            "lintFilePatterns": [
              "src/**/*.ts",
              "src/**/*.html"
            ]
          }
        },
        "e2e": {
          "builder": "@@angular-devkit/build-angular:protractor",
          "options": {
            "protractorConfig": "e2e/protractor.conf.js",
            "devServerTarget": "@(name):serve"
          },
          "configurations": {
            "production": {
              "devServerTarget": "@(name):serve:production"
            }
          }
        }
      }
    }
  }
}
